package com.chuanke.ckfamily.service.user;

import java.util.Map;

import com.chuanke.ckfamily.dao.user.model.Friend;
import com.chuanke.ckfamily.dao.user.model.UserRelation;
import com.chuanke.ckfamily.service.exception.CFException;
import com.weijie.core.IBaseBiz;

public interface UserRelationService extends IBaseBiz<UserRelation> {
	/**
	 * 获取用户关系
	 * 
	 * @param master
	 * @param slave
	 * @return
	 * @throws Exception
	 */
	UserRelation getUserRelation(Long master, Long slave) throws CFException;

	/**
	 * 获取用户好友
	 * 
	 * @param uid
	 * @param date
	 * @return
	 * @throws Exception
	 */
	ChanagedFriends getFriends(Long uid, String date) throws CFException;

	/**
	 * 修改好友备注
	 * 
	 * @param master
	 * @param slave
	 * @param remark
	 * @throws Exception
	 */
	void updateFriendRemark(Long master, Long slave, String friendRemark) throws CFException;

	/**
	 * 删除好友
	 * 
	 * @param master
	 * @param slave
	 * @throws Exception
	 */
	void deleteFriend(Long master, Long slave) throws CFException;

	/**
	 * 判断好友关系
	 * 
	 * @param master
	 * @param slave
	 * @return
	 * @throws Exception
	 */
	boolean isFriend(Long master, Long slave) throws CFException;

	/**
	 * 添加用户关系
	 *
	 * @throws Exception
	 */
	void addUserRelation(Long master, Long slave, String friendRemark) throws CFException;

	void deleteBlackWy(Long uid, Long tuserId) throws CFException;
	
	
	void createBlackWy(Long uid, Long tuserId) throws CFException;

}